package wwl.lsf;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Aspect
@Component
//@Scope("prototype")
public class Aspectwwl {

    @Pointcut("execution(* wwl.lsf.*.*.*(..))")
    public void pointCut() {
        System.out.println("pointCut");
    }

    @Before("pointCut()")
    public void before(JoinPoint joinPoint) {
        System.err.println(this.hashCode());
        System.out.println("before");
    }

}
